package vip.george;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;
import vip.george.cartoon.CartoonMovie;

/**
 * Hello world!
 */

@SpringBootApplication
@Import(CartoonMovie.class)
public class App {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(App.class);
        CartoonMovie bean = run.getBean(CartoonMovie.class);
        bean.play();
    }
}
